***** Description *****
This replication archive contains all data, code, and information to replicate the empirical results, tables, and figures in "Through the Ideology of the Beholder: How Ideology Shapes Perceptions of Partisan Groups" by Jonathan Homola, Jon C. Rogowski, Betsy Sinclair, Michelle Torres, Patrick D. Tucker, and Steven W. Webster.



***** File Overview *****


** R scripts **
HRSTTW_Stereotypes_Study1.R -- R script to generate Figures 1-2 in the main text as well as Appendix Tables A1, A4-A6, and Figures A1-A3

HRSTTW_Stereotypes_Tab1FigC1.R -- R script to generate Table 1 in the main text and Figure C1 in the Appendix

HRSTTW_Stereotypes_Figure3.R -- R script to generate Figure 3 in the main text

HRSTTW_Stereotypes_Study2_Appendix.R -- R script to generate Tables B1 and B2 as well as Figure B1 in the Appendix


** Do files **
HRSTTW_Stereotypes_Study2_MainAnalysis.do -- Do file to generate most of the Study 2 results: Table 2; Appendix Tables B4, B6-B20, C1, C2; and the margins for Figure 3 (used in script HRSTTW_Stereotypes_Figure3.R)

HRSTTW_Stereotypes_Study2_Appendix.do -- Do file to generate Tables B21 and B22


** Data files **
HRSTTW_Stereotypes_Study1.csv -- This dataset contains the data necessary to generate Figures 1-2 in the main text as well as Appendix Tables A1, A4-A6, and Figures A1-A3

HRSTTW_Stereotypes_Study2_MainAnalysis.dta -- This dataset contains the data necessary to generate most of the Study 2 results (using HRSTTW_Stereotypes_Study2_MainAnalysis.do)

HRSTTW_Stereotypes_Study2.dta -- This dataset contains the data necessary to generate Table 1 in the main text and Figure C1 in the Appendix

HRSTTW_Stereotypes_Study2_Appendix.dta -- This dataset contains the data necessary to generate Tables B21 and B22 (using HRSTTW_Stereotypes_Study2_Appendix.do)

HRSTTW_Stereotypes_Study2_Appendix.csv -- This dataset contains the data necessary to generate Tables B1 and B2 as well as Figure B1 in the Appendix



***** Additional Information *****
The following software (including R packages) was used to produce the results:
1) R version 4.0.5
2) foreign version 0.8-81
3) interplot version 0.2.3
4) plyr version 1.8.6
5) psych version 2.1.9
6) RColorBrewer version 1.1-2
7) sandwich version 3.0-1
8) stargazer version 5.2.2
9) survey version 4.1-1
10) weights version 1.0.4
11) xtable version 1.8-4
12) Stata/IC version 15.1



***** References *****
Homola, Jonathan, Jon C. Rogowski, Betsy Sinclair, Michelle Torres, Patrick D. Tucker, and Steven W. Webster. Through the Ideology of the Beholder: How Ideology Shapes Perceptions of Partisan Groups. Political Science Research and Methods.